home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 7 / FM Towns Free Software Collection 7.iso / taropyon / guilib3 / inc / eventcf.h < prev    next >
C/C++ Source or Header  |  1993-11-30  |  950b  |  46 lines

  1. #ifndef    _EVENTCF_H
  2. #define    _EVENTCF_H
  3.  
  4. #ifndef    _SPDEFS_H
  5. #    include    <spdefs.h>
  6. #endif
  7. #ifndef    _EVENT_H
  8. #    include    <event.h>
  9. #endif
  10.  
  11. /*    マウスイベント マスク範囲設定用    */
  12. typedef    struct    _evtmsk
  13. {    struct _evtmsk    *next;
  14.     FRAME            fr;
  15. } EVTMSK_T;
  16.  
  17. extern    IDL_T        *RootIdl;
  18. extern    char        _EvtSttDsp;
  19. extern    EVTMSK_T    *MosEvtMsk;
  20.  
  21. #define    IDLFUNC(c)    ((void (*)(clock_t))(c))
  22. #define    EVTFUNC(c)    ((int (*)(int, EVT_SBJ *))(c))
  23.  
  24. typedef    struct
  25. {
  26.     void    (*func)();
  27.     void    *ptr;
  28.     struct
  29.     {    int        btn, x, y;
  30.     } mos;
  31.     struct
  32.     {    UINT    ch, ec;
  33.     } key;
  34. } _ECPARA;
  35.  
  36. extern    int        _evt_callFunc  ( EVTSBJ_T *sbj, _ECPARA *ecp );
  37. extern    int        _evt_chk_mos   ( EVTSBJ_T *sbj, _ECPARA *ecp );
  38. extern    int        _evt_chk_key   ( EVTSBJ_T *sbj, _ECPARA *ecp );
  39. extern    int        _evt_chk_keyTbl( EVTSBJ_T *sbj, _ECPARA *ecp );
  40.  
  41. #define    EVTKEY_PFX_CMD            (0xFFFF_FFFF)
  42. #define    EVTKEY_HASH_POS(_ec)    (((((USHORT)(_ec))>>8)*31)&(EVTKEY_HASH_MAX-1))
  43.  
  44.  
  45. #endif
  46.